using System;
using System.Threading;
using System.Windows;
using System.Windows.Threading;
namespace RILABomberman
{
#if WINDOWS || XBOX
    static class Program
    {

        public static ClientMenu mainWindow { get; set; }
        public static Thread tMenu { get; set; }
        public static ClientMenuWait menuWait { get; set; }
        public static Thread tGame { get; set; }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>

        public static int MAX_TEAM = 2;
        static void Main(string[] args)
        {
            tMenu = new Thread(() =>
            {
               mainWindow = new ClientMenu();

               mainWindow.Show();
               System.Windows.Threading.Dispatcher.Run();
            });
            tMenu.SetApartmentState(ApartmentState.STA);
            tMenu.Start();
        }

        public static void startGame()
        {
            tGame = new Thread(() =>
            {

                using (Game1 game = new Game1())
                {
                     game.Run();

                }

            });
            tGame.Start();        
        }
    }
#endif
}

